#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "OLED.h"
#include "Timer.h"
#include "stm32f10x_tim.h"
extern int timer_interrupt_count;

int main(void)
{
	/*模块初始化*/
	OLED_Init();		//OLED初始化
	
	timer_init();
	
	
	while (1)
	{
		OLED_ShowNum(1, 1, timer_interrupt_count, 5);			//2行1列显示十进制数字12345，长度为5
        // 查看CNT计数器的值，可以观察到 当计数到7200时就触发了一次中断
        OLED_ShowNum(2, 1, TIM_GetCounter(TIM2), 5);
	}
}
